﻿using Smobiler.Core;
using Smobiler.Core.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FubiManger.Pad
{
    ////ToolboxItem用于控制是否添加自定义控件到工具箱，true添加，false不添加
    //[System.ComponentModel.ToolboxItem(true)]
    partial class Pusercontrol : Smobiler.Core.Controls.MobileUserControl
    {
        public Pusercontrol() : base()
        {
            //This call is required by the SmobilerUserControl.
            InitializeComponent();
        }
        /// <summary>
        /// 昵称
        /// </summary>
        public string nickname { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string username { get; set; }
        private void Pusercontrol_Load(object sender, EventArgs e)
        {
            lbluname.Text = ((PmainForm)this.Form).nickname;
        }

        private void panpwd_Press(object sender, EventArgs e)
        {
            Pwdcontrol con = new Pwdcontrol();
            con.adminid = ((PmainForm)this.Form).adminid;
            this.Form.ShowDialog(con);
            this.Form.CloseDrawer();
        }

        private void btnexit_Press(object sender, EventArgs e)
        {
            this.Client.ReStart();
        }
    }
}